package main;

import java.util.Timer;
import java.util.TimerTask;

import model.Horloge;
import model.Model;
import vue.*;

public class Simulation extends Thread {
	static Horloge h = new Horloge();
	static Model monModel = new Model(h);

	public static void main(String[] args) throws InterruptedException {

		Timer timer = new Timer();
		monModel.start();
		timer.scheduleAtFixedRate(new TimerTask() {
			public void run() {
				h.reveil();
			}
		}, 0, 300);

		sleep(1000);
		//VueTextuelle vt = new VueTextuelle(monModel.getMafourmiliere());
		//vt.start();
		Vue v= new Vue(monModel);
		v.start();
	}
}
